package com.test10.thumbnailator;

import java.io.FileOutputStream;
import java.io.InputStream;

import net.coobird.thumbnailator.Thumbnails;

public class ImageTest01 {
	public static void main(String[] args) throws Exception {
		InputStream openStream = ImageTest01.class.getResourceAsStream("/12.png");
		FileOutputStream fileOutputStream = new FileOutputStream(ImageTest01.class.getResource("/").getPath()+"1.png");
		Thumbnails.of(openStream).size(10, 10).toOutputStream(fileOutputStream);
	}
}
